package cn.bdqn.service;

import cn.bdqn.domain.Receipt;
import cn.bdqn.domain.SendFreight;
import cn.bdqn.utils.result.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 回执单业务接口
 * @author dkj
 */
public interface ReceiptService {

    /**
     * 根据id查询
     * @param id
     * @return
     */
    Receipt queryByPrimaryKey(Integer id);


    /**
     * 根据发货单号模糊查询
     * @param currentPage
     * @param pageSize
     * @param sendFreightNumber
     * @param state
     * @return
     */
    public Page queryBySendFreightId(Integer currentPage,
                                     Integer pageSize,
                                     String sendFreightNumber,
                                     Integer state);


    /**
     * 新增
     * @param receipt
     * @return
     */
    public Receipt saveReceipt(Receipt receipt);


    /**
     * 修改当前对象
     * @param receipt
     */
    public void updateReceipt(Receipt receipt);

}
